<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTrainingSituationsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('training_situations', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('users_id');
            $table->timestamp('training_time')->comment('培训时间');
            $table->integer('training_dueation')->nullable()->comment('培训时长');
            $table->integer('training_frequency')->nullable()->comment('培训次数');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('training_situations');
    }
}
